package tech.heiming.aps.domain;

import lombok.Getter;

import java.time.DayOfWeek;
import java.time.LocalTime;

/**
 * @author heimingz
 */
@Getter
public class Timeslot {
        private DayOfWeek dayOfWeek;
        private LocalTime startTime;
        private LocalTime endTime;

        private Timeslot() {
        }

        public Timeslot(DayOfWeek dayOfWeek, LocalTime startTime, LocalTime endTime) {
            this.dayOfWeek = dayOfWeek;
            this.startTime = startTime;
            this.endTime = endTime;
        }

        @Override
        public String toString() {
            return dayOfWeek + " " + startTime.toString();
        }

}
